import { Controller, Get, Param ,Query} from '@nestjs/common';
import { CourseService } from './course.service';
@Controller('course')
export class CourseController {
  constructor(private readonly courseService: CourseService) {}
  @Get(':courseTypeId/course-type-key/:courseTypeKey')
  getCourse(
    @Param("courseTypeId") courseTypeId: string,
    @Param("courseTypeKey") courseTypeKey: string,
  ) {
    return this.courseService.getCourse(courseTypeId, courseTypeKey);
  }
  @Get('detail/:courseId')
  getCourseDetail(@Param("courseId") courseId: string) {
    return this.courseService.getCourseDetail(courseId);
  }
  @Get('keyword/:keyword')
  getCourseKey(
    @Param("keyword") courseTypeId: string,
  ) {
    return this.courseService.getCourseKey(courseTypeId);
  }

  @Get('/sentence')
  getSentence() {
    return this.courseService.getSentence();
  }

}
